import request from '@/utils/request'

export function query(query) {
    return request({
        url: '/black-company/list',
        method: 'get',
        params: query
    })
}

export function add(data) {
    return request({
        url: '/black-company',
        method: 'post',
        data: data
    })
}

export function remove(ids) {
    return request({
        url: '/black-company/delete',
        method: 'post',
        data: { ids }
    })
}

export function searchRemove(data) {
    return request({
        url: '/black-company/delete-by-condition',
        method: 'post',
        data: data
    })
}